import { defineStore } from 'pinia';

export const useDrawer = defineStore('drawer', {
  state: () => ({
    left: false,
  }),
  getters: {
    doubleCount: (state) => state.counter * 2,
  },
  actions: {
    toggleLeft(){
      this.left = !this.left
    },
    setLeft(v:boolean){
      this.left = v
    }
  },
});
